package org.halk.es.crawl.service;

import org.halk.es.crawl.entity.Content;
import org.halk.es.crawl.pojo.content.dto.SearchQueryContentDto;

import java.io.IOException;
import java.util.List;

public interface IndexService {

    /**
     * 解析jd搜索页面
     *
     * @param keyword
     * @return
     */
    boolean parseJdSearchHtml(String keyword) throws IOException;

    /**
     * @param pageDto
     * @return
     */
    List<Content> searchQuery(SearchQueryContentDto pageDto);
}
